<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Restore the database</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="tokyotyrant.putshl.html">TokyoTyrant::putShl</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="tokyotyrant.setmaster.html">TokyoTyrant::setMaster</a></div>
 <div class="up"><a href="class.tokyotyrant.html">TokyoTyrant</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="tokyotyrant.restore" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">TokyoTyrant::restore</h1>
  <p class="verinfo">(PECL tokyo_tyrant &gt;= 0.1.0)</p><p class="refpurpose"><span class="refname">TokyoTyrant::restore</span> &mdash; <span class="dc-title">Restore the database</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-tokyotyrant.restore-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <span class="methodname"><strong>TokyoTyrant::restore</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$log_dir</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$timestamp</code></span>
   [, <span class="methodparam"><span class="type">bool</span> <code class="parameter">$check_consistency</code><span class="initializer"> = true</span></span>
  ] )</div>

  <p class="para rdfs-comment">
   Restore the database from the update log.
  </p>
  <div class="warning"><strong class="warning">Warning</strong>
   <p class="simpara">
    This method is not supported on 32bit platforms.
   </p>
  </div>
 </div>


 <div class="refsect1 parameters" id="refsect1-tokyotyrant.restore-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">log_dir</code></em></dt>

     <dd>

      <p class="para">
       Directory where the log is
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">timestamp</code></em></dt>

     <dd>

      <p class="para">
       Beginning timestamp with microseconds
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">check_consistency</code></em></dt>

     <dd>

      <p class="para">
       Whether to check consistency: Default: <strong><code>TRUE</code></strong>
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-tokyotyrant.restore-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   This method returns the current object and throws TokyoTyrantException on failure.
  </p>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="tokyotyrant.putshl.html">TokyoTyrant::putShl</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="tokyotyrant.setmaster.html">TokyoTyrant::setMaster</a></div>
 <div class="up"><a href="class.tokyotyrant.html">TokyoTyrant</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
